import ajax from './index'



export function qa_list(condition) {
    return ajax({
        url: "/backend/qa/list",
        method: "get",
        params: condition
    });
}

export function qa_add(param) {
    return ajax({
        url: "/backend/qa/create",
        method: "post",
        data: param
    });
}

export function qa_edit(id, param) {
    return ajax({
        url: "/backend/qa/update/" + id,
        method: "post",
        data: param
    });
}

export function qa_del(id) {
    return ajax({
        url: "/backend/qa/delete?ids=" + id,
        method: "post"
    });
}

export function qa_detail(id) {
    return ajax({
        url: "/backend/qa/detail/" + id,
        method: "get"
    });
}